package com.weixiaodong.ModelDesign.适应设计模式.Adapter模式.适配器模式演示案例.使用继承的适配器;

/**
 * 定义广告类
 */
@SuppressWarnings("all")
public class Banner {

    private String banner;

    public Banner(String banner) {
        this.banner = banner;
    }

    public void ShowBannerWithParen() {
        System.out.println("(" + this.banner + ")");
    }

    public void ShowBannerWithAster() {
        System.out.println("*" + this.banner + "*");
    }
}
